package net.oschina.bilbodai.common.beanutil.property;

import net.oschina.bilbodai.common.beanutil.property.test.Student;

import java.util.ArrayList;
import java.util.List;

/**
 * @author daimao  Date: 16/4/21 Time: 下午10:19
 * @version $Id$
 */
public class PropertyAsmSample implements Property{

    @Override
    public Object get(Object instance) {
        Student student = (Student) instance;
        return student.getSchool().getBits()[0];
    }

    public Object getPrimitive() {
        return (byte)1;
    }

    public Object listGet() {
        List list = new ArrayList();
        return list.get(1);
    }
}